package com.codeduck.start;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: <a href="mailto:codeduck@163.com">Codeduck</a>
 * @since: 2021-12-22
 */
@SpringBootApplication
@RestController
public class StartApplication {

    /**
     * 启动项目后，访问地址：http://localhost:8080/hello
     */
    @RequestMapping("/hello")
    public String helloSpringboot() {
        return "Hello Springboot!";
    }

    public static void main(String[] args) {
        SpringApplication.run(StartApplication.class, args);
    }
}
